package com.jk.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.jk.mapper.SLFMapper;
import com.jk.model.ProductBean;
import com.jk.model.UserBean;
import com.jk.service.SLFService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
@Component
public class SLFServiceImpl implements SLFService {

    @Autowired
    private SLFMapper slfMapper;

    @Override
    public UserBean findUserInfoByAccount(String  userAccount) {
        return slfMapper.findUserInfoByAccount(userAccount);
    }

    @Override
    public List<Map> findProductState() {
        return slfMapper.findProductState();
    }

    @Override
    public List<Map> findParticularsApp(Integer id) {
        return slfMapper.findParticularsApp(id);
    }

    @Override
    public List<Map> findPersonalCenter(Integer userId) {
        return slfMapper.findPersonalCenter(userId);
    }

    @Override
    public ProductBean findShopApp(Integer productId) {
        return slfMapper.findShopApp(productId);
    }

    @Override
    public List<Map> findClassify(Integer flag) {
        HashMap hashMap = new HashMap();
        hashMap.put("flag",flag);
        return slfMapper.findClassify(hashMap);
    }

    @Override
    public List<Map> findTheLatest() {
        return slfMapper.findTheLatest();
    }


    @Override
    public void saveFeg(UserBean userBean) {
        slfMapper.saveFeg(userBean);
    }


}
